extends Node2D

@export var slime_scene: PackedScene
@export var score :int = 0

func _process(delta: float) -> void:
	$CanvasLayer/score.text = "Score: " + str(score)


func _on_timer_timeout() -> void:
	var slime_node = slime_scene.instantiate()
	slime_node.position = Vector2(850,randf_range(350,417))
	get_tree().current_scene.add_child(slime_node)

func show_game_over() -> void:
	$CanvasLayer/game_over.show()
	
